home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Programming / powerd / modules.lha / modules / cybergraphx / cybergraphics.m < prev   
Encoding:
Text File  |  2001-01-28  |  5.4 KB  |  160 lines

  1. /*
  2. **    $VER: cybergraphics.h 41.18 (21.02.1998)
  3. **
  4. **    include file for cybergraphics.library
  5. **
  6. **    Copyright © 1996-1998 by phase5 digital products
  7. **      All Rights reserved.
  8. **
  9. */
  10. MODULE    'utility/tagitem'
  11. MODULE    'graphics/displayinfo'
  12.  
  13. #define    CYBERGFXNAME    'cybergraphics.library'
  14. CONST        CYBERGFX_INCLUDE_VERSION=41
  15.  
  16. /*                                                          *
  17.  *  Definition of CyberModeNode (Returned in AllocModeList) *
  18.  *                                                          */
  19. OBJECT CyberModeNode
  20.     Node:Node,
  21.     ModeText[DISPLAYNAMELEN]:UBYTE,    /* name for this mode */
  22.     DisplayID:ULONG,                   /* display id associated with the node */
  23.     Width:UWORD,                       /* visible width */
  24.     Height:UWORD,                      /* visible height */
  25.     Depth:UWORD,                       /* display depth */
  26.     DisplayTagList:PTR TO TagItem      /* taglist with extended ModeID information */
  27.  
  28. /*                                  *
  29.  * Parameters for GetCyberMapAttr() *
  30.  *                                  */
  31. CONST    CYBRMATTR_XMod       =$80000001,    /* function returns BytesPerRow if its called with this parameter */
  32.         CYBRMATTR_BPPix      =$80000002,    /* BytesPerPixel shall be returned */
  33.         CYBRMATTR_DispAdr    =$80000003,    /* do not use this ! private tag */
  34.         CYBRMATTR_PixFmt     =$80000004,    /* the pixel format is returned */
  35.         CYBRMATTR_Width      =$80000005,    /* returns width in pixels */
  36.         CYBRMATTR_Height     =$80000006,    /* returns height in lines */
  37.         CYBRMATTR_Depth      =$80000007,    /* returns bits per pixel */
  38.         CYBRMATTR_IsCyberGfx =$80000008,    /* returns -1 if supplied bitmap is a cybergfx one */
  39.         CYBRMATTR_IsLinearMem=$80000009    /* returns -1 if supplied bitmap is linear accessable */
  40.  
  41. /*                                 *
  42.  * Parameters for GetCyberIDAttr() *
  43.  *                                 */
  44. CONST    CYBRIDATTR_PixFmt    =$80000001,    /* the pixel format is returned */
  45.         CYBRIDATTR_Width     =$80000002,    /* returns visible width in pixels */
  46.         CYBRIDATTR_Height    =$80000003,    /* returns visible height in lines */
  47.         CYBRIDATTR_Depth     =$80000004,    /* returns bits per pixel */
  48.         CYBRIDATTR_BPPix     =$80000005    /* BytesPerPixel shall be returned */
  49.  
  50. /*                              *
  51.  * Tags for CyberModeRequest()  *
  52.  *                              */
  53. CONST    CYBRMREQ_TB          =TAG_USER+$40000
  54.  
  55. /*            *
  56.  * FilterTags *
  57.  *            */
  58. CONST    CYBRMREQ_MinDepth    =CYBRMREQ_TB+0,    /* Minimum depth for displayed screenmode */
  59.         CYBRMREQ_MaxDepth    =CYBRMREQ_TB+1,    /* Maximum depth  "       "        " */
  60.         CYBRMREQ_MinWidth    =CYBRMREQ_TB+2,    /* Minumum width  "       "        " */
  61.         CYBRMREQ_MaxWidth    =CYBRMREQ_TB+3,    /* Maximum width  "       "        " */
  62.         CYBRMREQ_MinHeight   =CYBRMREQ_TB+4,    /* Minumum height "       "        " */
  63.         CYBRMREQ_MaxHeight   =CYBRMREQ_TB+5,    /* Minumum height "       "        " */
  64.         CYBRMREQ_CModelArray =CYBRMREQ_TB+6,
  65.         CYBRMREQ_WinTitle    =CYBRMREQ_TB+20,
  66.         CYBRMREQ_OKText      =CYBRMREQ_TB+21,
  67.         CYBRMREQ_CancelText  =CYBRMREQ_TB+22,
  68.         CYBRMREQ_Screen      =CYBRMREQ_TB+30    /* Screen you wish the Requester to open on */
  69.  
  70. /*                            *
  71.  * Tags for BestCyberModeID() *
  72.  *                            */
  73. CONST    CYBRBIDTG_TB         =TAG_USER+$50000
  74.  
  75. /* FilterTags */
  76. CONST    CYBRBIDTG_Depth        =CYBRBIDTG_TB+0,
  77.         CYBRBIDTG_NominalWidth =CYBRBIDTG_TB+1,
  78.         CYBRBIDTG_NominalHeight=CYBRBIDTG_TB+2,
  79.         CYBRBIDTG_MonitorID    =CYBRBIDTG_TB+3,
  80.         CYBRBIDTG_BoardName    =CYBRBIDTG_TB+5
  81.  
  82. /*                                    *
  83.  * definition of divers pixel formats *
  84.  *                                    */
  85. ENUM    PIXFMT_LUT8,
  86.         PIXFMT_RGB15,
  87.         PIXFMT_BGR15,
  88.         PIXFMT_RGB15PC,
  89.         PIXFMT_BGR15PC,
  90.         PIXFMT_RGB16,
  91.         PIXFMT_BGR16,
  92.         PIXFMT_RGB16PC,
  93.         PIXFMT_BGR16PC,
  94.         PIXFMT_RGB24,
  95.         PIXFMT_BGR24,
  96.         PIXFMT_ARGB32,
  97.         PIXFMT_BGRA32,
  98.         PIXFMT_RGBA32
  99.  
  100. /*                                                        *
  101.  * SrcRectangle formats defines for xxxPixelArray calls() * 
  102.  *                                                        */
  103. ENUM    RECTFMT_RGB,
  104.         RECTFMT_RGBA,
  105.         RECTFMT_ARGB,
  106.         RECTFMT_LUT8,
  107.         RECTFMT_GREY8
  108.  
  109. /*                                    *
  110.  * Parameters for CVideoCtrlTagList() *
  111.  *                                    */
  112. CONST    SETVC_DPMSLevel   =$88002001
  113. ENUM    DPMS_ON,         /* Full operation                             */
  114.         DPMS_STANDBY,    /* Optional state of minimal power reduction  */
  115.         DPMS_SUSPEND,    /* Significant reduction of power consumption */
  116.         DPMS_OFF         /* Lowest level of power consumption          */
  117.  
  118. /*                              *
  119.  * Tags for LockBitMapTagList() *
  120.  *                              */
  121. CONST    LBMI_Width       =$84001001,
  122.         LBMI_Height      =$84001002,
  123.         LBMI_Depth       =$84001003,
  124.         LBMI_PixFmt      =$84001004,
  125.         LBMI_BytesPerPix =$84001005,
  126.         LBMI_BytesPerRow =$84001006,
  127.         LBMI_BaseAddress =$84001007
  128.  
  129. /*                                *
  130.  * Tags for UnLockBitMapTagList() *
  131.  *                                */
  132. CONST    UBMI_UpdateRects =$85001001,
  133.         UBMI_ReallyUnlock=$85001002
  134.  
  135. /*                                *
  136.  * Message passed to the DoCDrawMethodTagList() hook function    *
  137.  *                                */
  138. OBJECT CDrawMsg
  139.     MemPtr:PTR,
  140.     offx:ULONG,
  141.     offy:ULONG,
  142.     xsize:ULONG,
  143.     ysize:ULONG,
  144.     BytesPerRow:UWORD,
  145.     BytesPerPix:UWORD,
  146.     ColorModel:UWORD
  147.  
  148. /*                            *
  149.  * Colour Table source formats for WriteLUTPixelArray()    *
  150.  *                            */
  151. ENUM    CTABFMT_XRGB8    /* ULONG [] table */
  152.  
  153. /*                            *
  154.  *    graphics.library/AllocBitMap() extended flags    *
  155.  *                            */
  156. FLAG    BM_SPECIALFMT=7
  157.  
  158. /* BMB_SPECIALFMT */
  159. #define SHIFT_PIXFMT(fmt) ((fmt)<<24)
  160.